import { ref } from 'vue'


export const useChangeTime = (time: any, type: string) => {

    let date = new Date(time)

    let y = ref()
    y.value = date.getFullYear()
    let m = ref()
    m.value = date.getMonth() + 1
    let d = ref()
    d.value = date.getDate()
    return {
        y, m, d
    }
}